
#ifndef _H_CORE_H__
#define _H_CORE_H__

typedef struct cycle_s	cycle_t;
typedef struct pool_s	pool_t;
typedef struct log_s	log_t;
typedef struct array_s	array_t;
typedef struct connection_s	connection_t;
typedef struct event_s	event_t;

typedef void (*event_handler_pt)(event_t *ev);
typedef void (*connection_handler_pt)(connection_t *c);


#define E_OK	0
#define E_FAIL	-1

#include "process.h"
#include "atomic.h"
#include "palloc.h"
#include "process_cycle.h"
#include "list.h"
#include "array.h"
#include "shmem.h"
#include "connection.h"
#include "os.h"
#include "log.h"
#include "cycle.h"
#include "times.h"
#include "rbtree.h"
#include "shmtx.h"
#include "event_timer.h"

void request_handler(event_t *rev);
void process_send(event_t *wev);

#endif
